package observer.impl;

import observer.Investor;

/**
 * 具体观察者: 个人投资者
 *
 * @author Liu Yicong
 * @date 2025/9/23
 */
public class PersonalInvestor implements Investor {
	private String name;

	public PersonalInvestor(String name) {
		this.name = name;
	}

	@Override
	public void update(String stockName, double price) {
		System.out.println(name + " 收到通知：股票 [" + stockName + "] 的最新价格是 " + price);
	}
}
